-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/upgrade_protobuf_version #365
Conversation
WalkthroughThe changes in this pull request include updates to the Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected], pypi/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
poetry.lock
is excluded by!**/*.lock
📒 Files selected for processing (3)
CHANGELOG.md
(1 hunks)buf.gen.yaml
(1 hunks)pyproject.toml
(3 hunks)
✅ Files skipped from review due to trivial changes (2)
- buf.gen.yaml
- CHANGELOG.md
🔇 Additional comments (2)
pyproject.toml (2)
3-3
: LGTM: Version bump follows semantic versioning
The version increment to 1.8.2 is appropriate for dependency constraint updates.
25-25
: LGTM: Improved version constraint for aiohttp
The change from >=
to ^
provides better version control by allowing patches and minor updates while preventing potentially breaking major version changes. This is particularly important given the security context mentioned in the comment.
…ve issues with flakeheaven pre-commit validation
…re-commit CI to try to solve the issue with flakeheaven
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/pre-commit.yml
(1 hunks)
🔇 Additional comments (1)
.github/workflows/pre-commit.yml (1)
15-16
: Verify Python version compatibility with dependencies
Let's verify if the Python version constraints align with the project's dependencies, particularly the upgraded protobuf version.
✅ Verification successful
Python version constraints are compatible with dependencies
The specified Python version range >=3.9 <3.12
in the workflow file is compatible with:
- Project's Python requirement (
^3.9
) in pyproject.toml - Protobuf package requirement (
>=3.8
) - All dependency constraints in poetry.lock and Pipfile.lock (minimum versions range from 3.5 to 3.8)
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check Python version requirements in pyproject.toml and potential conflicts
# Check Python version specification in pyproject.toml
echo "Checking Python version constraints in pyproject.toml:"
rg "python\s*=" pyproject.toml
# Check protobuf package requirements
echo -e "\nChecking protobuf package Python requirements:"
curl -s https://pypi.org/pypi/protobuf/json | jq -r '.info.requires_python'
# Look for any explicit Python version requirements in the codebase
echo -e "\nChecking for other Python version constraints in the codebase:"
rg "python_requires|python_version|requires-python" .
Length of output: 5280
with: | ||
python-version: '>=3.9 <3.12' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorrect Python version constraint syntax for GitHub Actions
The version constraint syntax '>=3.9 <3.12'
is not compatible with GitHub Actions' setup-python action. The action expects either a specific version number or a simpler version specification.
Apply this change to fix the syntax:
with:
- python-version: '>=3.9 <3.12'
+ python-version: '3.9'
Alternatively, if you need to test against multiple Python versions, consider using a matrix strategy:
jobs:
pre-commit:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
- python-version: '>=3.9 <3.12'
+ python-version: ${{ matrix.python-version }}
Committable suggestion skipped: line range outside the PR's diff.
Summary by CodeRabbit
New Features
importlib-metadata
for improved compatibility.Bug Fixes
protobuf
.aiohttp
to allow for more compatible versions.Chores